package com.ssy.lingxi.member.merchant.entity;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 供应商店铺信息
 * @author 万宁
 * @version 2.0.0
 * @date 2021-09-27
 */
@Entity
@Table(schema = "public", name = "ms_mc_member_shop",
        indexes = {@Index(name = "ms_mc_member_shop_member_idx", columnList = "memberId, roleId")})
public class MemberShopDO implements Serializable {
    private static final long serialVersionUID = 8346399080344505381L;

    /**
     * 主键Id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "member_shop_seq")
    @SequenceGenerator(sequenceName = "ms_mc_member_shop_seq", name = "member_shop_seq", allocationSize = 1)
    private Long id;

    /**
     * 会员Id
     */
    @Column
    private Long memberId;

    /**
     * 角色Id
     */
    @Column
    private Long roleId;

    /**
     * 店铺名称
     */
    @Column(columnDefinition = "varchar(200)")
    private String name;

    /**
     * 供应商店铺Logo
     */
    @Column(columnDefinition = "varchar(400)")
    private String logo;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public Long getRoleId() {
        return roleId;
    }

    public void setRoleId(Long roleId) {
        this.roleId = roleId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogo() {
        return logo;
    }

    public void setLogo(String logo) {
        this.logo = logo;
    }
}
